package com.aqie.rabbit.service;

import com.aqie.rabbit.bean.api.message.MessageCreateModel;
import com.aqie.rabbit.bean.db.Group;
import com.aqie.rabbit.bean.db.Message;
import com.aqie.rabbit.bean.db.User;

public interface IMessageService {
    // 根据id 查询一条消息
    Message findById(String id);

    // 添加一条普通消息
    Message add(User sender, User receiver, MessageCreateModel model);

    // 添加一条群消息
    Message add(User sender, Group group, MessageCreateModel model);
}
